<!DOCTYPE html>
<html lang="zh">
<head>
	<meta charset="UTF-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1"> 
	<meta name="viewport" content="width=device-width, initial-scale=1.0">
	<title>带视觉差的网格浮动图片画廊jquery特效</title>
	<link rel="stylesheet" href="css/style.css">
</head>
<body>
	<div class="jq22-container">
		
		<section id="scene" data-pointer-events="true" data-x-origin="0.5" data-y-origin="0.5" data-scalar-y="150.0" data-scalar-x="100.0" data-friction-x="0.05" data-friction-y="0.05">
			<div class="layer main" data-depth="1.0">
				<div class="col">
					<a href="#">
						<div class="hover">
							<div class="pad align-bottom">
								<h2>Project Title</h2>
							</div>
						</div>
						<div class="bg-img" style="background-image:url(img/1.png);"></div>
					</a>
				</div>
				<div class="col">
					<a href="#">
						<div class="hover">
							<div class="pad align-bottom">
								<h2>Project Title</h2>
							</div>
							<div class="more"><i class="demo-icon icon-plus"></i></div>
						</div>
						<div class="bg-img" style="background-image:url(img/2.png);"></div>
					</a>
				</div>
				<div class="col">
					<a href="#">
						<div class="hover">
							<div class="pad align-bottom">
								<h2>Project Title</h2>
							</div>
							<div class="more"><i class="demo-icon icon-plus"></i></div>
						</div>
						<div class="bg-img" style="background-image:url(img/3.png);"></div>
					</a>
				</div>
				<div class="col">
					<a href="#">
						<div class="hover">
							<div class="pad align-bottom">
								<h2>Project Title</h2>
							</div>
						</div>
						<div class="bg-img" style="background-image:url(img/4.png);"></div>
					</a>
				</div>
				<div class="col">
					<a href="#">
						<div class="hover">
							<div class="pad align-bottom">
								<h2>Project Title</h2>
							</div>
							<div class="more"><i class="demo-icon icon-plus"></i></div>
						</div>
						<div class="bg-img" style="background-image:url(img/5.png);"></div>
					</a>
				</div>
				<div class="col">
					<a href="#">
						<div class="hover">
							<div class="pad align-bottom">
								<h2>Project Title</h2>
							</div>
							<div class="more"><i class="demo-icon icon-plus"></i></div>
						</div>
						<div class="bg-img" style="background-image:url(img/6.png);"></div>
					</a>
				</div>
				<div class="col">
					<a href="#">
						<div class="hover">
							<div class="pad align-bottom">
								<h2>Project Title</h2>
							</div>
						</div>
						<div class="bg-img" style="background-image:url(img/7.png);"></div>
					</a>
				</div>
				<div class="col">
					<a href="#">
						<div class="hover">
							<div class="pad align-bottom">
								<h2>Project Title</h2>
							</div>
							<div class="more"><i class="demo-icon icon-plus"></i></div>
						</div>
						<div class="bg-img" style="background-image:url(img/8.png);"></div>
					</a>
				</div>
				<div class="col">
					<a href="#">
						<div class="hover">
							<div class="pad align-bottom">
								<h2>Project Title</h2>
							</div>
							<div class="more"><i class="demo-icon icon-plus"></i></div>
						</div>
						<div class="bg-img" style="background-image:url(img/9.png);"></div>
					</a>
				</div>
				<div class="col">
					<a href="#">
						<div class="hover">
							<div class="pad align-bottom">
								<h2>Project Title</h2>
							</div>
						</div>
						<div class="bg-img" style="background-image:url(img/10.png);"></div>
					</a>
				</div>
				<div class="col">
					<a href="#">
						<div class="hover">
							<div class="pad align-bottom">
								<h2>Project Title</h2>
							</div>
							<div class="more"><i class="demo-icon icon-plus"></i></div>
						</div>
						<div class="bg-img" style="background-image:url(img/1.png);"></div>
					</a>
				</div>
				<div class="col">
					<a href="#">
						<div class="hover">
							<div class="pad align-bottom">
								<h2>Project Title</h2>
							</div>
							<div class="more"><i class="demo-icon icon-plus"></i></div>
						</div>
						<div class="bg-img" style="background-image:url(img/2.png);"></div>
					</a>
				</div>
				<div class="col">
					<a href="#">
						<div class="hover">
							<div class="pad align-bottom">
								<h2>Project Title</h2>
							</div>
						</div>
						<div class="bg-img" style="background-image:url(img/3.png);"></div>
					</a>
				</div>
				<div class="col">
					<a href="#">
						<div class="hover">
							<div class="pad align-bottom">
								<h2>Project Title</h2>
							</div>
							<div class="more"><i class="demo-icon icon-plus"></i></div>
						</div>
						<div class="bg-img" style="background-image:url(img/4.png);"></div>
					</a>
				</div>
				<div class="col">
					<a href="#">
						<div class="hover">
							<div class="pad align-bottom">
								<h2>Project Title</h2>
							</div>
							<div class="more"><i class="demo-icon icon-plus"></i></div>
						</div>
						<div class="bg-img" style="background-image:url(img/5.png);"></div>
					</a>
				</div>
				<div class="col">
					<a href="#">
						<div class="hover">
							<div class="pad align-bottom">
								<h2>Project Title</h2>
							</div>
							<div class="more"><i class="demo-icon icon-plus"></i></div>
						</div>
						<div class="bg-img" style="background-image:url(img/6.png);"></div>
					</a>
				</div>
				<div class="col">
					<a href="#">
						<div class="hover">
							<div class="pad align-bottom">
								<h2>Project Title</h2>
							</div>
						</div>
						<div class="bg-img" style="background-image:url(img/1.png);"></div>
					</a>
				</div>
				<div class="col">
					<a href="#">
						<div class="hover">
							<div class="pad align-bottom">
								<h2>Project Title</h2>
							</div>
							<div class="more"><i class="demo-icon icon-plus"></i></div>
						</div>
						<div class="bg-img" style="background-image:url(img/2.png);"></div>
					</a>
				</div>
				<div class="col">
					<a href="#">
						<div class="hover">
							<div class="pad align-bottom">
								<h2>Project Title</h2>
							</div>
							<div class="more"><i class="demo-icon icon-plus"></i></div>
						</div>
						<div class="bg-img" style="background-image:url(img/3.png);"></div>
					</a>
				</div>
				<div class="col">
					<a href="#">
						<div class="hover">
							<div class="pad align-bottom">
								<h2>Project Title</h2>
							</div>
						</div>
						<div class="bg-img" style="background-image:url(img/4.png);"></div>
					</a>
				</div>
				<div class="col">
					<a href="#">
						<div class="hover">
							<div class="pad align-bottom">
								<h2>Project Title</h2>
							</div>
							<div class="more"><i class="demo-icon icon-plus"></i></div>
						</div>
						<div class="bg-img" style="background-image:url(img/5.png);"></div>
					</a>
				</div>
				<div class="col">
					<a href="#">
						<div class="hover">
							<div class="pad align-bottom">
								<h2>Project Title</h2>
							</div>
							<div class="more"><i class="demo-icon icon-plus"></i></div>
						</div>
						<div class="bg-img" style="background-image:url(img/6.png);"></div>
					</a>
				</div>
				<div class="col">
					<a href="#">
						<div class="hover">
							<div class="pad align-bottom">
								<h2>Project Title</h2>
							</div>
						</div>
						<div class="bg-img" style="background-image:url(img/7.png);"></div>
					</a>
				</div>
				<div class="col">
					<a href="#">
						<div class="hover">
							<div class="pad align-bottom">
								<h2>Project Title</h2>
							</div>
							<div class="more"><i class="demo-icon icon-plus"></i></div>
						</div>
						<div class="bg-img" style="background-image:url(img/8.png);"></div>
					</a>
				</div>
				<div class="col">
					<a href="#">
						<div class="hover">
							<div class="pad align-bottom">
								<h2>Project Title</h2>
							</div>
							<div class="more"><i class="demo-icon icon-plus"></i></div>
						</div>
						<div class="bg-img" style="background-image:url(img/9.png);"></div>
					</a>
				</div>
				<div class="col">
					<a href="#">
						<div class="hover">
							<div class="pad align-bottom">
								<h2>Project Title</h2>
							</div>
						</div>
						<div class="bg-img" style="background-image:url(img/10.png);"></div>
					</a>
				</div>
				<div class="col">
					<a href="#">
						<div class="hover">
							<div class="pad align-bottom">
								<h2>Project Title</h2>
							</div>
							<div class="more"><i class="demo-icon icon-plus"></i></div>
						</div>
						<div class="bg-img" style="background-image:url(img/1.png);"></div>
					</a>
				</div>
				<div class="col">
					<a href="#">
						<div class="hover">
							<div class="pad align-bottom">
								<h2>Project Title</h2>
							</div>
							<div class="more"><i class="demo-icon icon-plus"></i></div>
						</div>
						<div class="bg-img" style="background-image:url(img/2.png);"></div>
					</a>
				</div>
				<div class="col">
					<a href="#">
						<div class="hover">
							<div class="pad align-bottom">
								<h2>Project Title</h2>
							</div>
						</div>
						<div class="bg-img" style="background-image:url(img/3.png);"></div>
					</a>
				</div>
				<div class="col">
					<a href="#">
						<div class="hover">
							<div class="pad align-bottom">
								<h2>Project Title</h2>
							</div>
							<div class="more"><i class="demo-icon icon-plus"></i></div>
						</div>
						<div class="bg-img" style="background-image:url(img/4.png);"></div>
					</a>
				</div>
				<div class="col">
					<a href="#">
						<div class="hover">
							<div class="pad align-bottom">
								<h2>Project Title</h2>
							</div>
							<div class="more"><i class="demo-icon icon-plus"></i></div>
						</div>
						<div class="bg-img" style="background-image:url(img/5.png);"></div>
					</a>
				</div>
				<div class="col">
					<a href="#">
						<div class="hover">
							<div class="pad align-bottom">
								<h2>Project Title</h2>
							</div>
							<div class="more"><i class="demo-icon icon-plus"></i></div>
						</div>
						<div class="bg-img" style="background-image:url(img/6.png);"></div>
					</a>
				</div>
			</div>
		</section>
	</div>
	
	<script src="http://www.jq22.com/jquery/jquery-1.10.2.js"></script>
	<script src="js/parallax.min.js"></script>
	<script type="text/javascript">
		var makeWinHeight = function(){
			var vh = $(window).height();
			var projects = vh/2;
			$('#scene, .layer.main').height(vh);
			$('#scene .col a, #scene .col').height(projects);
		}
		$(document).ready(function(){
			makeWinHeight();

		});
		$(window).resize(function(){
			makeWinHeight();
		});

		var scene = document.getElementById('scene');
		var parallax = new Parallax(scene);
	</script>
</body>
</html>